package com.library.mapper;

import com.library.entity.OaApprove;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.library.entity.OaApproveExt;
import com.library.entity.OaAttendanceRecordStaticVo;
import com.library.entity.UserInfo;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.Date;
import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author ido
 * @since 2024-12-14
 */
public interface OaApproveMapper
        extends BaseMapper<OaApprove>
{
    int deleteByPrimaryKey(Long id);

    int insert(OaApprove record);

    int insertSelective(OaApprove record);

    OaApprove selectByPrimaryKey(Long id);

    List<OaApproveExt> selectByQuery(OaApproveExt oaApproveExt);

    List<OaApproveExt> exists(OaApproveExt oaApproveExt);

    int updateByPrimaryKeySelective(OaApprove record);

    int updateByPrimaryKey(OaApprove record);

    List<OaAttendanceRecordStaticVo> listStatics(@Param("month") String month, @Param("role")String role,@Param("userInfoId") long userInfoId);
}
